<?php


namespace App\Models;


class CommodityOrder extends BaseModel
{

    public function detail()
    {
        return $this->hasMany(CommodityOrderDetail::class, 'order_id', 'id');
    }

    public function shop()
    {
        return $this->hasOne(Shop::class, 'id', 'shop_id');
    }
}